package com.itheima.Jiuye05;

public class MyBinarySearchDemo02 {
    public static void main(String[] args) {
        int [] arr = {1,3,4,6,5};
        for (int i = 0; i < arr.length; i++) {
            if (arr[i] > arr[i+1]){
                int temp = arr[i];
                arr[i] = arr[i+1];
                arr[i+1] = temp;
            }

        }
    }
}
